package com.hongye.why.base.net;

import com.hongye.why.util.ToastUtil;

/**
 * 公用的默认请求处理
 */
public abstract class CommonResponse implements ResponseHandler {

    @Override
    public void onNetStart() {

    }

    @Override
    public Object parseResult(String result) {
        return result;
    }

    @Override
    public void onSuccess(Object result) {

    }

    @Override
    public void onFail(int code, String errorMsg) {
        ToastUtil.showShortToast(errorMsg);
    }

    @Override
    public void onEnd() {

    }
}
